package ym.mappers;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import ym.obj.Teacher;

public interface TeacherMappers {

    @Select("select * from teacher where id=#{id} ")
    Teacher getTeacherById(@Param("id") int id);

    // 按结果嵌套处理
    Teacher getTeacherById01(@Param("id") int id);

    // 按查询嵌套处理
    Teacher getTeacherById02(@Param("id") int id);

}
